find (command)

In computing, find is a command in the command line interpreters (shells) of DOS, OS/2 and Microsoft Windows. It is used to search for a specific text string in a file or files. The command sends the specified lines the standard output device.

The Unix command find performs an entirely different function analogous to dir /s.

Contents

Overview

The find command is filter to find lines in the input data stream that contain or don't contain a specified string and send these to the output data stream.

Syntax

FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[...]]

Arguments:

Flags:

Note: If a pathname is not specified, FIND searches the text typed at the prompt or piped from another command.

Example

find "keyword" < inputfilename > outputfilename

See also

References